let count =1
let page =1

showData()
function showData() {
  
  $.ajax({
    url: '/baogao/query',
    data: {
      count: count,
      page: page
    },
    success: (res) => {
      
      if (res.error) {
        console.log(res.erro);
      } else {
        // 渲染表格
        $('.header').html('')
        $(res.data).each((index, item) => {
          console.log('111');
          $('.header').append(`
          <div class="col-md-4 top" data-id="${item.g_id}">
          <p><span>${item.g_date.slice(0, 10)}</span><span>${item.g_baogao}</span>  (${item.g_name}) <span class='iconfont icon-dian'>${item.g_piyue}</span></p>
          <p>批阅人员：李明明 抄送人员：李涛、赵明</p>
        </div>
        <div class="col-md-5"></div>
        <div class="col-md-3">
          <button class="iconfont icon-pen mbutton-blueb ">编辑报告</button>
          <button class="iconfont icon-lajitong mbutton-blueb">删除报告</button>
        </div>
       `);
        });
      }
    }
  });
};